<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 飞机座位分配概率 -->
    <script>
      var nthPersonGetsNthSeat = function (n) {
        return n == 1 ? 1.0 : 0.5
      }
      console.log(nthPersonGetsNthSeat(5))
    </script>
  </body>
</html>
